<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<script src="../js/vue.js" type="text/javascript" charset="utf-8"></script>
	</head>
	<body>
		<div id="app">
			<h2>{{counter}}</h2>
			<button type="button" @click="counter++">+</button>
			<button type="button" @click="counter--">-</button>
			<button type="button" @click="increment">+</button>
			<button type="button" @click="decrement">-</button>
		</div>
	</body>
	<script type="text/javascript">
		const app = new Vue({
			el:'#app',
			data:{
				counter:0
			},
			methods:{
				increment(){
					this.counter++
				},
				decrement(){
					this.counter--
				}
			}
		})
	</script>
</html>
